
typedef struct {
    int crankNicolson;
    int digital;
    int verbose;
    double S0;
    double strikePrice;
    double sigma;
    double r;
    double endTime;
    double M1;
    double M2;
    double deltaX;
    double deltaT;
} fdPars;

typedef struct {
    double optionValue;
    double hedge;
} fdResults;

void finiteDifference(fdPars *pars, fdResults *results);
void getPars(int argc, char *argv[], fdPars *pars);
